package com.huang.springsecurityoauth2.config.security;

import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @author HuangShen
 * @Description
 * @create 2021-01-12 17:45
 */
@Component(value = "authService")
public class AuthService {

    public boolean hasPermission(HttpServletRequest request, Authentication authentication) {

        // TODO: 2021/1/12 对要访问的资源进行 检测

        return true;
    }


}
